package model

import "encoding/json"

type SymbolInfo struct {
	Symbol string
	CoinScale int32
	BaseCoinScale int32
}


func (symbolInfo *SymbolInfo) ToJson() string {
	data, err := json.Marshal(symbolInfo)
	if err==nil {
		return string(data)
	}else {
		return ""
	}
}

func (symbolInfo *SymbolInfo) ToMap() map[string]interface{} {
	value :=make(map[string]interface{})
	value["Symbol"]=symbolInfo.Symbol
	value["CoinScale"]=symbolInfo.CoinScale
	value["BaseCoinScale"]=symbolInfo.BaseCoinScale
	return value
}
